package com.aidex.system.domain;

import java.util.Date;

import com.aidex.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.aidex.common.annotation.Excel;
/**
 * 接口日志对象 api_log
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-11-14
 */
@Data
public class ApiLog extends BaseEntity<ApiLog>
{
    private static final long serialVersionUID = 1L;

    /** API类型 */
    @Excel(name = "API类型")
    private String apiType;

    /** 错误次数 */
    @Excel(name = "错误次数")
    private Long apiErrornum;
    private String delFlag;
    /** 成功次数 */
    @Excel(name = "成功次数")
    private Long apiScuessnum;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date logDate;

    /** 日期开始 */
    private String beginLogDate;

    /** 日期结束 */
    private String endLogDate;
    public void setApiType(String apiType) 
    {
        this.apiType = apiType;
    }

    public String getApiType() 
    {
        return apiType;
    }

    public void setApiErrornum(Long apiErrornum) 
    {
        this.apiErrornum = apiErrornum;
    }

    public Long getApiErrornum() 
    {
        return apiErrornum;
    }

    public void setApiScuessnum(Long apiScuessnum) 
    {
        this.apiScuessnum = apiScuessnum;
    }

    public Long getApiScuessnum() 
    {
        return apiScuessnum;
    }

    public void setLogDate(Date logDate) 
    {
        this.logDate = logDate;
    }

    public Date getLogDate() 
    {
        return logDate;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apiType", getApiType())
            .append("apiErrornum", getApiErrornum())
            .append("apiScuessnum", getApiScuessnum())
            .append("logDate", getLogDate())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
